<?php    
session_start();
define('i-Teck_ADMIN', true);
require_once("../inc/config.php");
include("../inc/function.php");

    $log = (isset($_SESSION["login"])) ? $_SESSION["login"] : "";
    $msg = (isset($_SESSION["loi"])) ? $_SESSION["loi"] : "";
    
    $adm_logged = (isset($_SESSION["user"])) ? $_SESSION["user"] : false;
    $pas_logged = (isset($_SESSION["pass"])) ? $_SESSION["pass"] : false;

    if(($adm_logged == true) and ($pas_logged == true)){	    
		$left_menu_page = "left_menu.php";
		$content_page = "home.php";
    }else{	
		$left_menu_page = "left_menu_empty.php";
		$content_page = "login.php";
    }
?>
<!doctype html>
<html lang="en">

<head>
	<meta charset="utf-8"/>
	<title>Mango Telephone Admin Panel</title>	
	<link rel="stylesheet" href="css/layout.css" type="text/css" media="screen" />
	<!--[if lt IE 9]>
	<link rel="stylesheet" href="css/ie.css" type="text/css" media="screen" />
	<script src="js/html5.js"></script>
	<![endif]-->
	<script src="js/jquery-1.5.2.min.js" type="text/javascript"></script>
	<script src="js/hideshow.js" type="text/javascript"></script>
	<script src="js/jquery.tablesorter.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="js/jquery.equalHeight.js"></script>
	<script type="text/javascript">
	$(document).ready(function() 
    	{ 
      	  $(".tablesorter").tablesorter(); 
   	 } 
	);
	$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});
    </script>
    <script type="text/javascript">
    $(function(){
        $('.column').equalHeight();
    });
</script>

    <!-- JavaScript files --> 
</head>
		<body>
<?		if(($adm_logged == true) or ($pas_logged == true)){?>
	<header id="header">
		<hgroup>
			<h1 class="site_title"><a href="index.html">Mango Admin Manage</a></h1>
			<h2 class="section_title">Tổng Quan</h2><div class="btn_view_site"><a href="http://www.didongmango.com">Vào trang chủ</a></div>
		</hgroup>
	</header> <!-- end of header bar -->
<section id="secondary_bar">
		<div class="user">
			<p>Chào <a href=""><? echo isset($_SESSION['user']) ? $_SESSION['user'] : "Khách";?></a></p>
			<!-- <a class="logout_user" href="#" title="Logout">Logout</a> -->
		</div>
		<div class="breadcrumbs_container">
			<article class="breadcrumbs"><a href="index.html">Trang quản trị</a> <div class="breadcrumb_divider"></div> <a>Trang quản trị</a> <div class="breadcrumb_divider"></div> <a class="current">Tổng Quan</a></article>
		</div>
	</section><!-- end of secondary bar -->

<?}?>
          <?php
		//  echo $_REQUEST['mod'];
	//	  if (($_REQUEST['mod']!='chon-anh1') or (trim($_REQUEST['mod'])!="up-anh1")){
		  include($left_menu_page); ?><?php include($content_page); ?>
  
		</body>
</html>